package com.jfree.zk;

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @author wangjian
 * @date 2019/7/22 19:17
 */
public class Test {
    public static void main(String[] args) {
     Scanner scanner=new Scanner(System.in);
     String list=scanner.next();
        int[] is;
     try {
         String[] array=list.split(",");
         is=new int[array.length];
         for(int i=0;i<array.length;i++){
             is[i]=Integer.valueOf(array[i]);
         }
         for(int i=0;i<is.length;i++){
             for(int j=0;j<is.length-1;j++){
                 if(is[j]>is[j+1]){
                     is[j]=is[j]^is[j+1];
                     is[j+1]=is[j]^is[j+1];
                     is[j]=is[j]^is[j+1];
                 }
             }
         }
        String str="";
         for(int i:is){
             str=str+i+",";
         }
         System.out.println(str.substring(0,str.length()-1));
     }catch (Exception e){
         return;
     }
    }
}
